package com.sc.nft.entity.vo.secondEquityProp;

import cn.hutool.core.util.ObjectUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class SecondEquityPropTradingTendDetailsVO {


    @ApiModelProperty("最新成交价")
    private String newDeal;

    @ApiModelProperty("金额最高价")
    private String toDayMaxPrice;

    @ApiModelProperty("金额最低价")
    private String toDayMinPrice;

    @ApiModelProperty("成交量")
    private Integer toDayDealVolume;

    public void setNewDeal(BigDecimal newDeal) {
        this.newDeal = newDeal.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setToDayMaxPrice(BigDecimal toDayMaxPrice) {
        this.toDayMaxPrice = toDayMaxPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }

    public void setToDayMinPrice(BigDecimal toDayMinPrice) {
        this.toDayMinPrice = toDayMinPrice.setScale(2,BigDecimal.ROUND_DOWN).toPlainString();
    }
}
